package com.baizhi.feign;

import com.baizhi.dto.VideoDTO;
import com.baizhi.entity.Video;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("BZKT-VIDEO")
public interface VideosClient {

    @PostMapping("publish")
    VideoDTO publish(@RequestBody Video video);

    /*@GetMapping("getVideos")
    List<VideoDTO> getVideos(@RequestParam("ids") List<Integer> ids);*/
}
